package lab02.test35;

import javafx.concurrent.Worker;

/**
 * Created by dell on 2017/11/16.
 */
public class Test {
    public static void main(String[] args) {
        Manager m=new Manager("ayu",4000);
        Salesman s=new Salesman("sunsiyu",3000,70,30);
        System.out.println("经理"+m.getName()+ "的工资为"+m.computeSalary());
        System.out.println("销售人员"+s.getName()+ "的工资为"+s.computeSalary());
        System.out.println("工人"+ s.getName() + "的工资为"+ s.computeSalary());
    }

}